package com.hejia.alauda.entity;

import java.math.BigDecimal;

import javax.persistence.Column;

/**
 * 资金账户(以第三方支付为准)
 * Created by Johnny(johnny@hejiajinrong.com) on 14-9-3.
 */
public class Balance extends BaseEntity{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -6989031901097810462L;
	
	@Column
	private BigDecimal income;//总收益
	
	@Column
	private BigDecimal asset;//总资产（就是投资总额）
	
	@Column
	private String payPassword;//支付密码
	
	@Column
	private Double redEnvelope; //红包
	
	@Column
	private Double cash; //可提取现金
	
	@Column
	private Double cashed; //已提取现金

	@Column
	private Double regRed; //注册红包
	
	@Column
	private Double actRed; //理财金活动红包
	

	public BigDecimal getIncome() {
		return income;
	}

	public void setIncome(BigDecimal income) {
		this.income = income;
	}

	public BigDecimal getAsset() {
		return asset;
	}

	public void setAsset(BigDecimal asset) {
		this.asset = asset;
	}

	public String getPayPassword() {
		return payPassword;
	}

	public void setPayPassword(String payPassword) {
		this.payPassword = payPassword;
	}

	public Double getRedEnvelope() {
		return redEnvelope != null ? redEnvelope : 0;
	}

	public void setRedEnvelope(Double redEnvelope) {
		this.redEnvelope = redEnvelope;
	}

	public Double getCash() {
		return cash;
	}

	public void setCash(Double cash) {
		this.cash = cash;
	}

	public Double getCashed() {
		return cashed;
	}

	public void setCashed(Double cashed) {
		this.cashed = cashed;
	}

	public Double getRegRed() {
		return regRed;
	}

	public void setRegRed(Double regRed) {
		this.regRed = regRed;
	}

	public Double getActRed() {
		return actRed;
	}

	public void setActRed(Double actRed) {
		this.actRed = actRed;
	}
	
	
}
